package cn.xuguowen.user.designPatten.template.easy3;

/**
 * ClassName: Client
 * Package: cn.xuguowen.user.designPatten.template.easy3
 * Description:
 * 钩子方法演示
 * @Author 徐国文
 * @Create 2023/4/24 23:08
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        SoyaMilk readBean = new ReadBeanSoyaMilk();
        readBean.make();
        System.out.println();
        SoyaMilk peanut = new PeanutSoyaMilk();
        peanut.make();
        System.out.println();
        // 纯豆浆的制作：利用钩子方法实现不加配料
        SoyaMilk pure = new PureSoyaMilk();
        pure.make();
    }
}
